package javalearning.MultiThreads.join;

public class ThreadTest {
    public static void main(String[] args) {
        System.out.println("begins");
        ThreadJoin t1 = new ThreadJoin();
        ThreadJoin t2 = new ThreadJoin();
        ThreadJoin t3 = new ThreadJoin();
//        t1.setName("南京");
//        t2.setName("山东");
//        t3.setName("日照");
        t1.start();
        try {
            t1.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        t2.start();
        t3.start();
    }
}
